import request from '@/utils/request'

export default {
  getList: function (params) {
    return request({
      url: '/supplier/listByPage',
      method: 'post',
      data: params
    })
  },
  save: function (data) {
    return request({
      url: '/supplier/save',
      method: 'post',
      data
    })
  },
  changeStatus: function (id) {
    return request({
      url: '/supplier/changeStatus/'+id,
      method: 'get'
    })
  },
  remove: function (id) {
    return request({
      url: '/supplier/delete/'+id,
      method: 'get'
    })
  },
  getOnlySupNameList: function() {
    return request({
      url: '/supplier/getOnlySupNameList',
      method: 'get'
    })
  }
}
